﻿<controls:ChildWindow xmlns:my="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input" 
 x:Class="FileManager.LoginPopup"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="412" Height="194" 
           Title="Login to Server">
    <Canvas x:Name="LayoutRoot" Margin="2">
		<Button x:Name="CancelButton" Content="Close" Click="CancelButton_Click" Width="90" Height="23"  Canvas.Left="300" Canvas.Top="132"  />
		<Button x:Name="btnLogin" Content="Login" Width="101" Height="23" Canvas.Left="99" Canvas.Top="132" Click="btnLogin_Click" />
       
    	<TextBlock x:Name="lblStatus" Text="" TextWrapping="Wrap" Height="49" Canvas.Top="79" Foreground="#FFAF0E0E" Canvas.Left="99" FontSize="16" Width="291" />
    	<Grid Height="75" Width="390">
    		<Grid.ColumnDefinitions>
    			<ColumnDefinition Width="0.255*"/>
    			<ColumnDefinition Width="0.745*"/>
    		</Grid.ColumnDefinitions>
    		<Grid.RowDefinitions>
    			<RowDefinition Height="0.333*"/>
    			<RowDefinition Height="0.347*"/>
    			<RowDefinition Height="0.32*"/>
    		</Grid.RowDefinitions>
    		<my:Label Content="Server:" HorizontalAlignment="Right" Margin="0,0,5,0"/>
    		<my:Label Content="User Name:" Grid.Row="1" HorizontalAlignment="Right" Margin="0,0,5,0"/>
    		<my:Label Content="Password:" Grid.Row="2" HorizontalAlignment="Right" Margin="0,0,5,0"/>
    		<TextBox x:Name="txtServer" Grid.Column="1" TextWrapping="Wrap" Text="http://localhost:81/SilverlightBridge" />
    		<TextBox x:Name="txtUserName" Grid.Column="1" TextWrapping="Wrap" Grid.Row="1" Text="admin" />
    		<PasswordBox x:Name="txtPassword" Grid.Column="1" Grid.Row="2" Password="password" />
    	</Grid>
    </Canvas>
</controls:ChildWindow>